export const transferTime = (number) => {
    let second = 0
    let minute = 0
    let hour = 0
    if (number >= 60) {
        minute = parseInt(number / 60)
        second = parseInt(number % 60)
        if (minute >= 60) {
            hour = parseInt(minute / 60)
            minute = parseInt(minute % 60)
        }
    } else {
        second = number
    }
    return `${addZero(hour)}:${addZero(minute)}:${addZero(second)}`
}

const addZero = (number) => {
    if (number < 10) {
        return '0' + number
    } else {
        return '' + number
    }
}